﻿namespace DimensionsHelper.ExcelAddIn.Core.Sql;

/// <summary>
/// SQL脚本生成器的字段设置类
/// </summary>
public class FieldSettings
{

    /// <summary>
    /// 字段类型
    /// </summary>
    public FieldKinds Kind { get; set; } = FieldKinds.Categorical;

    /// <summary>
    /// 字段名称
    /// </summary>
    public string Name { get; set; } = string.Empty;

    /// <summary>
    /// 替换名称，默认是null
    /// </summary>
    public string? Replacement { get; set; }

    /// <summary>
    /// 字段值标签，默认是null
    /// </summary>
    public string? Label { get; set; }

    /// <summary>
    /// 字段值替换表，如果有值，则会覆盖字段值标签，如果不需要替换，则设置为null
    /// </summary>
    public Dictionary<string, string>? Replacements { get; set; }
}